/**
 * Copyright (c) 2018 软唐 All rights reserved.
 *
 * https://www.softtown.cn
 *
 * 版权所有，侵权必究！
 */

package com.softtown.modules.security.dto;

import com.softtown.common.validator.group.DefaultGroup;
import com.softtown.common.validator.group.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 重置密码
 *
 * @author Ding Ya Yong
 */
@Data
@ApiModel(value = "忘记密码")
public class ResetDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "密码", required = true)
    @NotBlank(message = "{sms.password.require}",groups= UpdateGroup.class)
    private String password;

    @ApiModelProperty(value = "确认密码")
    @NotBlank(message = "{sms.newpwd.require}",groups= UpdateGroup.class)
    private String newpwd;

    @ApiModelProperty(value = "手机号")
    @NotBlank(message="{sms.mobile.require}")
    private String mobile;

    private String username;
}